/**
 * @author 冯进茹
 * @time 2022-12-02 14:13useRouter
 * @description 实现路由注册和定义
 */
import {createRouter,createWebHistory} from 'vue-router'

import intercreptor from './intercreptor'
import routes from './routes'

const router =createRouter({
    history:createWebHistory(),
    routes
})

router.beforeEach(intercreptor)

export default router